package com.say.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.say.bean.domain.Chat;
import com.say.framework.core.common.service.BaseService;

public interface ChatService extends BaseService<Chat, String> {

	Page<Map<String, Object>> findChatByPage(Map<String, Object> params, Pageable initPage);
	
	List<Chat> findChatByIntervalPagePage(String userId,String toUserId,String maxChatId);
	
	void updateChatStautsByUser(String userId);
	
	void send(String userId,String toUserId,Integer type,String text);
}
